package com.wnxy.admin.mapper;
import com.wnxy.admin.dto.ConsumeDto;
import com.wnxy.admin.dto.CustomerReportDto;
import com.wnxy.admin.dto.OperatorReportDto;
import org.apache.ibatis.annotations.Mapper;
import com.wnxy.admin.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单表 Mapper 接口
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * @author nhj
     * 电站经营状况
     */
    List<OperatorReportDto> selectOperatorReport(@Param("chargingStationId") Long chargingStationId,@Param("createTime") String createTime);

    /**
     * @author nhj
     * 导出运营分析数据
     */
    List<OperatorReportDto> selectOperatorExport();

    /**
     * @author nhj
     * 查询消费记录
     */
    List<ConsumeDto> selectConsumeAll(String customerName);

    /**
     * @author nhj
     * 客户消费占比
     */
    List<CustomerReportDto> selectCustomerReport(@Param("chargingStationId") Long chargingStationId,@Param("createTime") String createTime);
}
